//
//  RecognizeImageCallback.m
//  app
//
//  Created by 张泽龙 on 2022/3/11.
//

#import "RecognizeImageCallback.h"

@implementation RecognizeImageCallback

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

/**
 * 执行人脸认证回调,会多次回调
 * 返回最匹配的一个人脸信息
 * @param result 回调结果
 */
-(void)onError:(EsFaceIDResult *)result {
    NSLog(@"发生异常 ： %i : %@", result.errorCode, result.errMsg);
}

- (void)onMatchResult:(NSMutableDictionary<NSString *,NSNumber *> *)result {
    NSLog(@"onMatchResult:");
}

- (void)onVerifyResult:(EsFaceIDResult *) esFaceIDResult {
    if(esFaceIDResult.errorCode == EF_FACE_RECOGNITION_END){
        NSLog(@"人脸群扫结束");
        return;
    }
    
    NSLog(@"onVerifyResult:");
}
@end
